	var Accordion=function(selector){
		this.selector=selector;
		this.element=$(selector).get(0);
		
		this.init();
	}
	Accordion.prototype=new Control();
	Accordion.prototype.init=function(){
		this.list=new Accordion.List(this.element.children[0]);
		//this.list.focusControl(0);
	}
	Accordion.prototype.setFocusNum=function(focusNum){
		this.list.setFocusNum(focusNum);
	}
	
	
	
	
	Accordion.List=function(selector){
		this.selector=selector
		this.element=$(selector).get(0);
		this.init();
	}
	Accordion.List.prototype=new FocusList()
	Accordion.List.prototype.init=function(){
		this.create();
	}
	Accordion.List.prototype.create=function(){
		var children=this.element.children;
		var item=null;
		var self=this;
		this.items=new Array()
		for(var i=0;i<children.length;i++){
			item=new Accordion.ListItem(children[i],i,function(focusNum){self.setFocusNum(focusNum);});
			item.init();
			this.items.push(item);
		}
	}
	
	Accordion.ListItem=function(selector,num,setFocusNum){
		this.selector=selector;
		this.num=num;
		this.setFocusNum=setFocusNum;
	}
	Accordion.ListItem.prototype=new FocusListItem()
	Accordion.ListItem.prototype.init=function(){
		
		this.element=$(this.selector).get(0);
		
		var self=this;
		$("div.accordionTitle",this.element).bind("click",function(event){self.clickTitleHandle(event)})
	}
	Accordion.ListItem.prototype.create=function(){	
	}
	Accordion.ListItem.prototype.clickTitleHandle=function(event){
		this.setFocusNum(this.num);
	}
	Accordion.ListItem.prototype.focusOpen=function(){
		this.element.className="focusOpen";
	};
	Accordion.ListItem.prototype.focusClose=function(){
		this.element.className="focusClose";
	};
	
	HTMLTurbo.control.Accordion=Accordion;